
<?
    $h1 = "margin:0; padding:0; margin-bottom: 13px; font-size: 21px; font-weight: normal;";
    $h2 = "margin:0; padding:0; margin-bottom: 13px; font-size: 18px;";

    $table_def = "margin 0; padding:0; color:#21409A; font-family:Tahoma; font-size:13px; line-height:16px; text-align:left; text-decoration:none; background: #FFFFFF;";
    $table_main = "margin: 23px auto 0 auto; width: 550px; border: 1px solid #e6e6e6;";
    $td = 'padding:15px 15px;';

    $spec_offer = 'background-color: #EE9B00; color:#21409A; border:0px; background-color:#E6EDF6;';
?>

<table width="550" cellspacing="0" cellpadding="0" style="<?= $table_def ?> <?= $table_main ?>">

    <tbody>

        <tr valign="middle" style="height: 100px;">

            <td colspan="4" style="<?= $td; ?> border-bottom:0; padding:11px 15px 10px">
                <a href="http://www.globtour.me" target="_blank">
                    <img src="<?= $access_url ?>/assets/img/email/logo_login_data_globtour.png" alt="Online rezervacija hotelskog smjestaja" style="display: block" />
                </a>
            </td>

        </tr>

        <tr valign="middle">

            <td colspan="4" style="<?= $td; ?> padding:0 15px; border-bottom:0">

                <table cellspacing="0" cellpadding="0" style="<?= $table_def ?>" width="518">

                    <tbody>

                        <tr>
                            <td colspan="4" style="<?= $spec_offer; ?> padding:15px"><h1 style="<?= $h1 ?> margin: 0; letter-spacing: -0.5px; text-shadow: 1px 1px 0 #FFFFFF;"><?= $title ?></h1></td>
                        </tr>

                    </tbody>

                </table>


            </td> 

        </tr>

        <tr valign="middle" style="height: 100px;">

            <td colspan="4" style="<?= $td; ?> vertical-align: top; padding-left: 30px; border-bottom:0">

                <table cellspacing="0" cellpadding="0" style="<?= $table_def ?> width:100%; text-align: center;">

                    <tbody>

                        <tr>
                            <td><h2 style="<?= $h2 ?>">Customer Support Department</h2></td>
                        </tr>
                        <tr>
                            <td>Office hours: 09.00 am - 17.00 pm ( Moday - Friday )</td>
                        </tr>
                        <tr>
                            <td>Tel/Fax: + 382 33 451-020 , +382 33 452-827, +382 69 069 316</td>
                        </tr>
                        <tr>
                            <td>Web: www.globtour.me</td>
                        </tr>

                    </tbody>

                </table>

            </td>

        </tr>

        <tr  valign="middle" style="height: 100px;">
            <td  colspan="4" style="<?= $td; ?> vertical-align: top; padding-left: 30px; border-bottom:0">
                <table cellspacing="0" cellpadding="0" style="<?= $table_def ?>">

                    <tbody>

                        <tr>
                            <td>Arrival date:&nbsp;&nbsp;</td>
                            <td> <?= $arrival ?></td>
                        </tr>
                        <tr>
                            <td>Departure date:&nbsp;&nbsp;</td>
                            <td> <?= $departure ?></td>
                        </tr>
                        <tr>
                            <td>Client's name:&nbsp;&nbsp;</td>
                            <td> <?= $client ?></td>
                        </tr>
                        <tr>
                            <td>Address:&nbsp;&nbsp;</td>
                            <td> <?= $address ?></td>
                        </tr>
                        <tr>
                            <td>City:&nbsp;&nbsp;</td>
                            <td> <?= $city ?></td>
                        </tr>
                        <tr>
                            <td>ZIP Code:&nbsp;&nbsp;</td>
                            <td> <?= $zip ?></td>
                        </tr>
                        <tr>
                            <td>Country:&nbsp;&nbsp;</td>
                            <td> <?= $country ?></td>
                        </tr>
                        <tr>
                            <td>Number of persons:&nbsp;&nbsp;</td>
                            <td> <?= $persons ?></td>
                        </tr>

                    </tbody>

                </table>
            </td>
        </tr>

        <tr valign="middle" style="height: 100px;">

            <td colspan="4" style="<?= $td; ?> vertical-align: top; padding-left: 30px; border-bottom:0">

                <table cellspacing="0" cellpadding="0" style="<?= $table_def ?>">

                    <tbody>

                        <tr>
                            <td colspan="2"><h2 style="<?= $h2 ?>">Accommodation Confirmation</h2></td>
                        </tr>
                        <tr>
                            <td>Destination country:&nbsp;&nbsp;</td>
                            <td> Montenegro</td>
                        </tr>
                        <tr>
                            <td>City:&nbsp;&nbsp;</td>
                            <td><?= $destination ?> </td>
                        </tr>
                        <tr>
                            <td style="vertical-align: top">Accommodation:&nbsp;&nbsp;</td>
                            <td> 
                                <?= strip_tags ( $accommodation) ?>,<br>
                                <?= $contact_email ?>
                            </td>
                        </tr>

                    </tbody>

                </table>

            </td>

        </tr>

        <tr valign="middle" style="height: 100px;">

            <td colspan="4" style="<?= $td; ?> vertical-align: top; padding-left: 30px; border-bottom:0">

                <table cellspacing="0" cellpadding="0" style="<?= $table_def ?> background:#E6EDF6; border: 1px solid #AFAFAF; width: 100%; padding: 15px;">

                    <tbody>

                        <tr>
                            <td colspan="2"><h2 style="<?= $h2 ?>">Total Price</h2></td>
                        </tr>


                        <tr>
                            <td style="vertical-align: top">Room/Service:&nbsp;&nbsp;</td>
                            <td> 
                                <?= $room_type ?>, <?= $service ?>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2"><br/>VAT (17%) is included in price<br/><br/></td>
                        </tr>
                        <tr>
                            <td style="font-size:19px; font-weight:bold">Total:&nbsp;&nbsp;</td>
                            <td style="font-size:19px;">&euro; <?= $total ?></td>
                        </tr>
                        <tr>
                            <td colspan="2"><br/>Please note: additional costs (eg extra bed)<br/> are not included in this purchase price<br/><br/></td>
                        </tr>

                    </tbody>

                </table>

            </td>

        </tr>

        <tr valign="middle" style="height: 75px;">

            <td colspan="4" style="<?= $td; ?> vertical-align: top; padding-left: 30px; border-bottom:0">

                <table cellspacing="0" cellpadding="0" style="<?= $table_def ?>">

                    <tbody>

                        <tr>
                            <td colspan="2"><h2 style="<?= $h2 ?>"> Accepted credit cards </h2></td>
                        </tr>
                        <tr>
                            <td colspan="2"><?= $cards ?></td>
                        </tr>

                    </tbody>

                </table>

            </td>

        </tr>

        <tr valign="middle">

            <td colspan="4" style="<?= $td; ?> vertical-align: top; padding-left: 30px; border-bottom:0">

                <table cellspacing="0" cellpadding="0" style="<?= $table_def ?>">

                    <tbody>

                        <tr>
                            <td colspan="2">
                                Dear <span style="text-transform:capitalize"><?= trim($client) ?></span>,<br/><br/>
                                Thank you for booking with <b>globtour.me</b>.<br>
                                We hope that you are pleased with our services and the hotel accommodations that<br>we arranged for you.

                        </tr>

                    </tbody>

                </table>

            </td>

        </tr>

        <tr valign="middle" style="height: 100px;">

            <td colspan="4" style="<?= $td; ?> vertical-align: top; padding-left: 30px; border-bottom:0">

                <table cellspacing="0" cellpadding="0" style="<?= $table_def ?>">

                    <tbody>

                        <tr>
                            <td colspan="2"><h2 style="<?= $h2 ?>">Accommodation Cancellation</h2></td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                To cancel your reservation please click on following link:&nbsp;&nbsp;<br>
                                <a href="<?= $cancellation_link ?>" target="_blank"><?= $cancellation_link ?></a>
                            </td>
                        </tr>

                    </tbody>

                </table>

            </td>

        </tr>

        <tr valign="middle">
            <td colspan="2" style="<? echo $td; ?> vertical-align: top; padding-left: 30px; border-bottom:0; width:150px">

                <b>Explanation on how<br/>to use the voucher:</b>

            </td>
            <td colspan="2" width="313px" style="<?= $td; ?>  vertical-align: top; padding-left:0; border-bottom:0">
                This voucher is provided by <b>globtour.me</b>.<br/>
                Please present your passport when using the voucher.<br/><br/><br/>
            </td>
        </tr>

        <tr valign="middle">

            <td colspan="4" style="<?= $td; ?> vertical-align: top; padding-left: 30px; border-bottom:0; padding-top:0">

                <table cellspacing="0" cellpadding="0" style="<?= $table_def ?> width:100%; text-align:right">

                    <tbody>

                        <tr>
                            <td colspan="2">
                                Have a nice trip!<br/>
                                Team <b>globtour.me</b>.<br>
                        </tr>

                    </tbody>

                </table>

            </td>

        </tr>

        <tr valign="middle">

            <td colspan="4" style="<?= $td; ?> padding:0 15px; border-bottom:0">

                <table cellspacing="0" cellpadding="0" style="<?= $table_def ?>" width="518">

                    <tbody>

                        <tr>
                            <td colspan="4" style="<?= $spec_offer; ?> padding:15px">
                                <h1 style="<?= $h1 ?> margin: 0; text-shadow: 1px 1px 0 #FFFFFF; font-size: 13px;">
                                    Office hours: 09.00 am - 17.00 pm ( Moday - Friday ), 
                                    Tel/Fax:  + 382 33 451-020 , +382 33 452-827, +382 69 069 316, 
                                    Web: www.globtour.me
                                </h1></td>
                        </tr>

                    </tbody>

                </table>


            </td> 

        </tr>

        <tr valign="middle">
            <td colspan="4" style="<?= $td; ?> padding:0; height:15px"></td>
        </tr>


    </tbody>
</table>